/*
 * This file is part of the OdinMS MapleStory Private Server
 * Copyright (C) 2011 Patrick Huy and Matthias Butz
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package client.anticheat;

public enum ReportType {

  Hacking(0, "hack"),
  Botting(1, "bot"),
  Scamming(2, "scam"),
  FakeGM(3, "fake"),
  Advertising(5, "advertising");
  public byte i;
  public String theId;

  private ReportType(int i, String theId) {
    this.i = (byte) i;
    this.theId = theId;
  }

  public static ReportType getById(int z) {
    for (ReportType t : values()) {
      if (t.i == z) {
        return t;
      }
    }
    return null;
  }

  public static ReportType getByString(String z) {
    for (ReportType t : values()) {
      if (z.contains(t.theId)) {
        return t;
      }
    }
    return null;
  }
}
